import React, {Component} from 'react'
// 导入路由
import {Outlet} from 'react-router-dom'
// import News from "../News";
export default class Home extends Component {
    render() {
        return (
            // <Router>
            <div>
                //老版本的路由写法不能实现效果
                {/* <Link to="/home/news">提交</Link>*/}
                {/* <Routes>
                    <Route path="/home/news" element={<News />}></Route>
                </Routes> */}
                // // 留给子组件News的出口
                <Outlet/>
            </div>
            // </Router>
        )
    }
}

